#include <stdio.h>
int main()
{
	int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
	int i = 0;
	int j = 0;
	int tmp = 0;
	int sz = sizeof(arr) / sizeof(arr[0]);
	
	for(i = 0; i < sz; i++)
	{
		if(arr[i] % 2)
		{
			tmp = arr[j];
			arr[j] = arr[i];
			arr[i] = tmp;
			j++;
		}
	}
	
	for(i = 0; i < sz; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}


